<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="oscache" prefix="cache" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
String content = request.getParameter("content");
if(content != null && !content.equals("")){
	out.println(content);
}

//单点登录用户名
String username = (String) request.getSession().getAttribute("edu.yale.its.tp.cas.client.filter.user");
System.out.println("username:" + username);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
  </head>
  
  <body>
<!--    <textarea class="ckeditor" id="content" ></textarea>-->
	<form action="index.jsp" method="get">
		<textarea id="content" cols="4" rows="10"></textarea>
		<script type="text/javascript">
			CKEDITOR.replace('content',{
				filebrowserUploadUrl : '<%=path %>/ckeditor/uploader?Type=File',  
				filebrowserImageUploadUrl : '<%=path %>/ckeditor/uploader?Type=Image',
				filebrowserFlashUploadUrl : '<%=path %>/ckeditor/uploader?Type=Flash'
			});
		</script>
		
		<input type="submit" value="提交">
	</form>
	<cache:cache time="10">
		缓存10秒：<%=new Date() %>
	</cache:cache>
  </body>
</html>
